import request from '@/utils/request'

// 查询歌手列表列表
export function listSinger(query) {
  return request({
    url: '/music/singer/list',
    method: 'get',
    params: query
  })
}

// 查询歌手列表详细
export function getSinger(singerId) {
  return request({
    url: '/music/singer/' + singerId,
    method: 'get'
  })
}

// 新增歌手列表
export function addSinger(data) {
  return request({
    url: '/music/singer',
    method: 'post',
    data: data
  })
}

// 修改歌手列表
export function updateSinger(data) {
  return request({
    url: '/music/singer',
    method: 'put',
    data: data
  })
}

// 删除歌手列表
export function delSinger(singerId) {
  return request({
    url: '/music/singer/' + singerId,
    method: 'delete'
  })
}
